<template>
  <div class="My_grid">
    <van-grid :column-num="3" :border="false" icon-size="22" :gutter="23">
      <van-grid-item icon="star-o" text="我的收藏" @click="toFavorites" />
      <van-grid-item icon="wap-home-o" text="我的出租" @click="toHouse" />
      <van-grid-item icon="clock-o" text="看房记录" />
      <van-grid-item icon="idcard" text="成为房主" />
      <van-grid-item icon="user-circle-o" text="个人资料" />
      <van-grid-item icon="service-o" text="联系我们" />
    </van-grid>
  </div>
</template>

<script>
export default {
  name: 'MyGrid',
  data() {
    return {}
  },
  created() {},
  methods: {
    toFavorites() {
      this.$router.push('/favorites')
    },
    toHouse() {
      this.$router.push('/house')
    }
  }
}
</script>

<style scoped>
.My_grid {
  position: absolute;
  width: 100%;
  height: 84%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(175%);
  font-size: 13px;
}
</style>
